.textbook-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f5f5f5;
}

.page-header {
  padding: 15px 16px;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

.page-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.content-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 0 10px;
}

.section-title {
  font-size: 16px;
  background-color: #dae7fa;
  color: #333;
  padding: 15px 0 10px 5px;
  margin: 0;
  margin-top: 5px;
  border-radius: 8px 8px 0 0;
  //border-bottom: 1px solid #eee;
}

.recent-courses {
  background-color: #fff;
  border-radius: 8px 8px 0 0;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  // height: 160px;
}

.media-container {
  display: flex;          /* 启用 Flex 布局 */
  align-items: flex-start; /* 顶部对齐 */
  gap: 20px;              /* 图片和文字的间距 */
  max-width: 800px;       /* 容器最大宽度 */
  margin: 0 auto;         /* 居中显示 */
  padding: 5px;
}

.media-img {
  width: 100px;          /* 固定图片宽度 */
  height: auto;          /* 高度自适应 */
  object-fit: cover;     /* 保持图片比例 */
  border-radius: 4px;    /* 可选圆角 */
}

.course-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  height:186px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 24px;
}

.course-item:last-child {
  border-bottom: none;
}

.course-checkbox {
  --icon-size: 20px;
  --font-size: 16px;
  margin-right: 12px;
}

.course-title {
  font-size: 15px;
  color: #333;
  flex: 1;
}

.material-tag {
  font-size: 12px;
  padding: 3px 8px;
  margin-left: 8px;
}

/* 课程列表样式 */
.all-courses-section {
  margin-top: 18px;
}

.course-list {
  --border-inner: none;
  --border-bottom: none;
  --border-top: none;
  border-radius: 8px;
  overflow: hidden;
}

.course-list-item {
  --padding-left: 12px;
  --padding-right: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.course-list-item:last-child {
  border-bottom: none;
}

.list-checkbox {
  --icon-size: 20px;
  --font-size: 16px;
}

.list-item-content {
  display: flex;
  flex-direction: column;
}

.course-title {
  font-size: 15px;
  color: #333;
}

.last-seen {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* 底部导航样式 */
.bottom-tab-bar {
  background-color: #fff;
  border-top: 1px solid #eee;
  height: 50px;
}

/* 布局核心样式 */
.text-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    padding: 10px 20px;
    background: white;
    border-radius:0 0 8px 8px;
    //margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.text-button-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.text-content {
    flex: 1;
}
.text-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.button-group {
    display: flex;
    gap: 12px;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #1db7d8;
    color: white;
}

.btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.grid-div {
    height: 60px;
    display:flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: 12px;
}

.grid-div:hover {
  border:2px solid #3498db;
  transform: translateY(-2px);
}